@import './common';

header {
  .cart-header {
    margin: 0;
    padding: 38px 0 31px;
    position: relative;
    max-width: 100%;
    border-bottom: 1px solid #979797;

    >.header-logo {
      margin: 0 auto;

      >.contact-us {
        position: absolute;
        top: 38px;
        right: 100px;

        >ul {
          text-align: right;

          >li {
            font-size: 14px;
            color: #999;
            line-height: 18px;
          }
        }
      }
    }
  }
}

.cart-container {
  margin: 14px auto 0;
  padding: 0 20px;
  max-width: 1320px;

  >.go-shopping {
    margin-bottom: 14px;
    font-size: 14px;
    color: #000;
  }

  >.cart-content {
    padding-bottom: 40px;
    padding-right: 330px;
    position: relative;

    >.cart-content-left {
      width: 100%;

      >h1 {
        display: inline-block;
        margin: 28px 0;
        font-size: 30px;
      }

      >.cart-nav {
        padding: 17px 0 17px 205px;
        position: relative;
        align-items: center;
        font-size: 14px;
        color: #fff;
        background-color: #000;

        >label {
          position: absolute;
          top: 50%;
          left: 20px;
          margin-top: -7px;
          cursor: pointer;

          >.white-border {
            width: 17px;
            height: 17px;
            border: 1px solid #fff;
            cursor: pointer;
          }
        }

        >p {
          position: absolute;
          left: 57px;
          width: 130px;
          text-align: center;
          letter-spacing: 1.17px;
          font-size: 14px;
        }

        >ul {
          width: 100%;
          display: flex;
          display: -webkit-flex;

          >li {
            width: 23%;
            text-align: center;

            &:nth-of-type(1) {
              width: 36%;
              text-align: left;
            }

            &:nth-of-type(3) {
              width: 26%;
            }

            &:nth-of-type(4) {
              padding-right: 20px;
              width: 15%;
              text-align: right;
            }
          }
        }
      }

      >.cart-wrapper {
        >.cart-event {
          background-color: #fff;

          >.cart-event-one {
            position: relative;
            padding: 40px 0 40px 206px;
            border-bottom: 1px solid #e8e8e8;

            >label {
              position: absolute;
              top: 50%;
              left: 20px;
              margin-top: -7px;
              cursor: pointer;

              >.white-border {
                width: 17px;
                height: 17px;
                border: 1px solid #fff;
                cursor: pointer;
              }
            }

            >.event-one-right {
              width: 100%;
              text-align: left;
              display: flex;
              display: -webkit-flex;

              >.left-pic {
                margin-top: 40px;
                position: absolute;
                top: 0;
                left: 57px;
                width: 117px;

                >a {
                  width: 100%;
                  display: block;
                  min-height: 154px;
                  line-height: 154px;

                  >img {
                    width: 100%;
                  }
                }
              }

              >.shopcart-details {
                >p {
                  margin-bottom: 15px;
                  font-size: 14px;
                  color: #111;
                  line-height: 16px;
                }

                >.color-select {
                  position: relative;
                  padding: 0 23px 0 30px;
                  height: 43px;
                  line-height: 43px;
                  border: 1px solid #999;

                  >span {
                    color: #999;
                    font-size: 14px;
                  }

                  >.iconfont {
                    position: absolute;
                    top: 2px;
                    right: 4px;
                    font-size: 12px;
                    color: #000;
                  }
                }
              }

              >.cart-money {
                width: 23%;
                text-align: center;

                >p {
                  font-size: 14px;
                  color: #000;
                  line-height: 45px;
                }
              }

              >.cart-amout {
                width: 26%;
                text-align: center;

                >.num-box {
                  margin: 0 auto;
                  width: 108px;
                  height: 45px;
                  border: 1px solid #e1e1e1;
                  background-color: #fff;
                  display: flex;
                  display: -webkit-flex;

                  >a {
                    padding: 0 8px;
                    width: 36px;
                    line-height: 45px;
                    background: #f2f2f2;

                    >.iconfont {
                      display: block;
                      font-size: 12px;
                    }

                    &:nth-of-type(2) {
                      background-color: #fff;
                    }
                  }

                  >input {
                    width: 34px;
                    height: 43px;
                    line-height: 43px;
                    text-align: center;
                    border: none;
                  }
                }
              }

              >.cart-allmoney {
                padding-right: 20px;
                width: 15%;
                text-align: right;

                >p {
                  font-size: 14px;
                  color: #000;
                  line-height: 45px;
                }
              }
            }

            >.cart-bottom {
              padding-top: 70px;

              >ul {
                display: flex;
                display: -webkit-flex;

                >li {
                  font-size: 12px;
                  text-decoration: underline;

                  &:first-of-type {
                    position: relative;
                    padding-right: 20px;

                    &::after {
                      content: '';
                      display: block;
                      width: 2px;
                      height: 2px;
                      background-color: #000;
                      position: absolute;
                      top: 50%;
                      right: 9px;
                      transform: translateY(-50%);
                    }
                  }
                }
              }
            }
          }

          >.cart-event-two {
            >.event-one-right {
              min-height: 110px;

              >.shopcart-details {
                width: 68%;

                >span {
                  display: block;
                  font-size: 14px;
                  color: #999;
                }
              }

              >.cart-amout {
                >p {
                  line-height: 45px;
                  font-size: 14px;
                }
              }
            }
          }
        }
      }

      >.shopping-use-content {
        padding: 40px 0;
        border-bottom: 1px #e8e8e8 solid;
        font-size: 14px;
        line-height: 1.5;

        >.red {
          color: #ff0000;
        }

        >.x-small {
          font-size: x-small;
          line-height: 1.5;
        }
      }

      >.content-one {
        padding: 40px 0;
        border-bottom: 1px #e8e8e8 solid;
        position: relative;
        display: flex;
        display: -webkit-flex;
        justify-content: flex-end;
        flex-wrap: wrap;

        >span {
          position: absolute;
          top: 40px;
          left: 20px;
          font-size: 18px;
          font-weight: 500;
        }

        >.salescode-box {
          padding-right: 120px;
          position: relative;
          width: 434px;

          >.box-input {
            >input {
              padding: 5px 30px 5px 9px;
              width: 314px;
              height: 45px;
              background-color: #fff;
            }
          }

          >a {
            position: absolute;
            top: 0;
            right: 0;
            min-width: 120px;
            height: 45px;
            line-height: 45px;
            text-align: center;
            background-color: #000;
            color: #fff;
          }
        }

        >.cart-try {
          position: relative;
          display: flex;
          display: -webkit-flex;
          margin: 25px 0 0;
          padding: 0 20px;
          background-color: #000;
          width: 100%;
          height: 52px;
          line-height: 52px;

          >p {
            font-size: 14px;
            color: #d3d3d3;

            &:first-of-type {
              margin-right: 20px;
              font-size: 18px;
              color: #fff;
            }
          }

          >.iconfont {
            position: absolute;
            top: 0;
            right: 20px;
            font-size: 26px;
            color: #fff;
          }
        }
      }

      >.content-two {
        justify-content: flex-start;

        >.title {
          margin-bottom: 20px;
          width: 100%;
          font-size: 18px;
          font-weight: 500;
          color: #000;
        }

        >h5 {
          margin-bottom: 10px;
          font-size: 14px;
          font-weight: 500;
        }

        >p {
          color: #999;
          font-size: 12px;
        }

        >.free {
          position: absolute;
          top: 50%;
          right: 0;
          display: flex;
          display: -webkit-flex;
          align-items: center;
          font-size: 14px;
          height: 17px;
          line-height: 17px;

          >div {
            margin-right: 8px;
            height: 17px;
            width: 17px;
            border: 1px solid #000;
          }
        }
      }

      >.content-three {
        justify-content: space-between;

        >p {
          margin-left: 20px;
          font-size: 18px;
          font-weight: 500;
        }

        >.price-box {
          width: 256px;
          font-size: 14px;

          >p {
            margin-bottom: 16px;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
          }
        }
      }

      >.total-box {
        padding-top: 40px;
        display: flex;
        display: -webkit-flex;
        flex-direction: column;
        align-items: flex-end;

        >p {
          margin-bottom: 40px;
          display: flex;
          display: -webkit-flex;
          justify-content: space-between;
          width: 256px;
          font-size: 14px;
          font-weight: 700;
        }

        >.immediately-go{
          display: flex;
          display: -webkit-flex;
          justify-content: space-between;
          width: 100%;

          >a{
            line-height: 43px;
          }

          >a:nth-of-type(2){
            display: inline-block;
            min-width: 235px;
            height: 45px;
            border: 1px solid #ccc;
            background-color: #000;
            color: #fff;
            text-align: center;
          }
        }
      }

      >.you-like {
        width: 100%;

        >.you-like-title {
          position: relative;
          margin-top: 40px;
          margin-bottom: 30px;
          height: 26px;
          font-size: 30px;

          >span {
            width: 147px;
            height: 100%;
            text-align: center;
            background-color: #fff;
            position: absolute;
            left: 50%;
            top: 0;
            z-index: 1;
            transform: translateX(-50%);
          }

          &::after {
            margin-top: 3px;
            content: '';
            display: block;
            height: 1px;
            width: 100%;
            background-color: #999;
            position: absolute;
            top: 50%;
            left: 0;
          }
        }

        >.swiper-container {
          --swiper-theme-color: #000;
          margin: 0 auto;

          >.swiper-wrapper {
            >.swiper-slide {
              // margin: 0 25px;
              width: 248px;

              .two-container-right {
                padding: 5px;

                .content-top {
                  position: relative;
                  text-align: center;

                  a {
                    display: inline-block;
                    width: 240px;
                    height: 240px;
                    img {
                      width: 100%;
                    }
                  }

                  .tag {
                    position: absolute;
                    top: 0;
                    left: 0;

                    >span {
                      display: inline-block;
                      height: 22px;
                      width: 48px;
                      text-align: center;
                      background-color: #000;
                      font-size: 12px;
                      letter-spacing: 0.75px;
                      color: #fff;
                      line-height: 22px;
                    }
                  }
                }

                .content-bottom {
                  text-align: center;

                  >.goods-select {
                    padding: 10px 22px 30px;
                    height: 70px;
                  }

                  >h3 {
                    margin-top: 10px;
                    font-size: 14px;
                    line-height: 24px;
                    height: 50px;

                    >a {
                      color: #000;
                    }
                  }

                  >p {
                    margin-top: 10px;
                    font-size: 14px;

                    >a {
                      color: #000;
                    }

                    &:nth-of-type(2) {
                      margin-top: 18px;
                      margin-bottom: 20px;
                      font-size: 15px;
                    }
                  }

                  >a{
                    display: inline-block;
                    width: 126px;
                    height: 35px;
                    line-height: 35px;
                    font-size: 15px;
                    background-color: #000;
                    color: #fff;
                    text-align: center;

                    >img{
                      margin-top: -5px;
                      margin-right: 5px;
                      vertical-align: middle;
                    }
                  }
                }
              }
            }
          }

          >.swiper-button-prev {
            left: -14px;
            top: 38%;
            width: 40px;
            height: 64px;
            transform: translateY(-50%);

            >i {
              font-size: 34px;
            }

            &::after {
              display: none;
            }
          }

          >.swiper-button-next {
            right: -14px;
            top: 38%;
            width: 40px;
            height: 64px;
            transform: translateY(-50%);

            >i {
              font-size: 34px;
            }


            &::after {
              display: none;
            }
          }
        }
      }
    }

    >.cart-content-right {
      position: absolute;
      top: 0;
      right: 0;
      width: 306px;

      >.cart-order-all {
        margin-bottom: 15px;
        padding: 28px 24px;
        text-align: center;
        background-color: #f2f2f2;

        >h3 {
          margin-bottom: 25px;
          font-size: 18px;
          font-weight: 700;
        }

        >a {
          margin-bottom: 30px;
          display: block;
          color: #fff;
          height: 45px;
          line-height: 43px;
          border: 1px solid #ccc;
          font-size: 14px;
          background-color: #000;
        }

        >p {
          margin-bottom: 10px;
          display: flex;
          display: -webkit-flex;
          justify-content: space-between;
          font-size: 14px;

          &:last-child {
            padding-top: 15px;
            border-top: 1px #fff solid;
          }
        }
      }

      >.online-service {
        >h3 {
          margin-bottom: 20px;
        }

        >p {
          justify-content: center;

          >.iconfont {
            font-size: 15px;
          }
        }

        >a {
          margin-bottom: 0;
          margin-top: 30px;
        }
      }

      >.safe-box {
        margin-bottom: 15px;
        padding: 28px 24px;
        text-align: center;
        background-color: #f2f2f2;

        >h3 {
          margin-bottom: 10px;
          font-size: 18px;
          font-weight: 700;
        }

        >.safe-ensure {
          padding: 40px 0;
          text-align: center;

          >img {
            width: 88px;
          }

          >h4 {
            margin-top: 15px;
            font-size: 18px;
          }

          >p {
            margin-top: 8px;
            font-size: 13px;
            line-height: 18px;
          }
        }

        >.top-border {
          border-top: 1px #fff solid;
        }
      }
    }
  }
}